package com.cx.service.serviceimp;

import org.springframework.stereotype.Service;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import com.cx.entity.PUser;
import com.cx.mapper.PUserMapper;
import com.cx.service.PUserService;
@Service
public class PUserServiceImpl implements PUserService{

    @Autowired
    private PUserMapper pUserMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return pUserMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PUser record) {
        return pUserMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(PUser record) {
        return pUserMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(PUser record) {
        return pUserMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(PUser record) {
        return pUserMapper.insertSelective(record);
    }

    @Override
    public PUser selectByPrimaryKey(Integer id) {
        return pUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PUser record) {
        return pUserMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PUser record) {
        return pUserMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<PUser> list) {
        return pUserMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<PUser> list) {
        return pUserMapper.batchInsert(list);
    }

    @Override
    public PUser login(PUser login) {
        return pUserMapper.login(login);
    }

}
